(global.webpackJsonp = global.webpackJsonp || []).push([ [ "components/gaoyia-parse/parse" ], {
    "0af5": function(t, e, n) {
        (function(t) {
            Object.defineProperty(e, "__esModule", {
                value: !0
            }), e.default = void 0;
            var a = function(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }(n("a5f1")), o = {
                name: "wxParse",
                props: {
                    userSelect: {
                        type: String,
                        default: "text"
                    },
                    imgOptions: {
                        type: [ Object, Boolean ],
                        default: function() {
                            return {
                                loop: !1,
                                indicator: "number",
                                longPressActions: !1
                            };
                        }
                    },
                    loading: {
                        type: Boolean,
                        default: !1
                    },
                    className: {
                        type: String,
                        default: ""
                    },
                    content: {
                        type: String,
                        default: ""
                    },
                    noData: {
                        type: String,
                        default: ""
                    },
                    startHandler: {
                        type: Function,
                        default: function() {
                            return function(t) {
                                t.attr.class = null, t.attr.style = null;
                            };
                        }
                    },
                    endHandler: {
                        type: Function,
                        default: null
                    },
                    charsHandler: {
                        type: Function,
                        default: null
                    },
                    imageProp: {
                        type: Object,
                        default: function() {
                            return {
                                mode: "aspectFit",
                                padding: 0,
                                lazyLoad: !1,
                                domain: ""
                            };
                        }
                    }
                },
                components: {
                    wxParseTemplate: function() {
                        n.e("components/gaoyia-parse/components/wxParseTemplate0").then(function() {
                            return resolve(n("0326"));
                        }.bind(null, n)).catch(n.oe);
                    }
                },
                data: function() {
                    return {
                        nodes: {},
                        imageUrls: [],
                        wxParseWidth: {
                            value: 0
                        }
                    };
                },
                computed: {},
                mounted: function() {
                    this.setHtml();
                },
                methods: {
                    setHtml: function() {
                        var t = this;
                        this.getWidth().then(function(e) {
                            t.wxParseWidth.value = e;
                        });
                        var e = this.content, n = this.noData, o = this.imageProp, i = e || n, r = {
                            start: this.startHandler,
                            end: this.endHandler,
                            chars: this.charsHandler
                        }, s = (0, a.default)(i, r, o, this);
                        this.imageUrls = s.imageUrls, this.nodes = s.nodes;
                    },
                    getWidth: function() {
                        var e = this;
                        return new Promise(function(n, a) {
                            t.createSelectorQuery().in(e).select(".wxParse").fields({
                                size: !0,
                                scrollOffset: !0
                            }, function(t) {
                                n(t.width);
                            }).exec();
                        });
                    },
                    navigate: function(t, e, n) {
                        console.log(t, n), this.$emit("navigate", t, e);
                    },
                    preview: function(e, n) {
                        this.imageUrls.length && "boolean" != typeof this.imgOptions && t.previewImage({
                            current: e,
                            urls: this.imageUrls,
                            loop: this.imgOptions.loop,
                            indicator: this.imgOptions.indicator,
                            longPressActions: this.imgOptions.longPressActions
                        }), this.$emit("preview", e, n);
                    },
                    removeImageUrl: function(t) {
                        var e = this.imageUrls;
                        e.splice(e.indexOf(t), 1);
                    }
                },
                provide: function() {
                    return {
                        parseWidth: this.wxParseWidth,
                        parseSelect: this.userSelect
                    };
                },
                watch: {
                    content: function() {
                        this.setHtml();
                    }
                }
            };
            e.default = o;
        }).call(this, n("543d").default);
    },
    a61d: function(t, e, n) {
        n.d(e, "b", function() {
            return a;
        }), n.d(e, "c", function() {
            return o;
        }), n.d(e, "a", function() {});
        var a = function() {
            this.$createElement, this._self._c;
        }, o = [];
    },
    b389: function(t, e, n) {
        n.r(e);
        var a = n("a61d"), o = n("c71f");
        for (var i in o) "default" !== i && function(t) {
            n.d(e, t, function() {
                return o[t];
            });
        }(i);
        var r = n("f0c5"), s = Object(r.a)(o.default, a.b, a.c, !1, null, null, null, !1, a.a, void 0);
        e.default = s.exports;
    },
    c71f: function(t, e, n) {
        n.r(e);
        var a = n("0af5"), o = n.n(a);
        for (var i in a) "default" !== i && function(t) {
            n.d(e, t, function() {
                return a[t];
            });
        }(i);
        e.default = o.a;
    }
} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "components/gaoyia-parse/parse-create-component", {
    "components/gaoyia-parse/parse-create-component": function(t, e, n) {
        n("543d").createComponent(n("b389"));
    }
}, [ [ "components/gaoyia-parse/parse-create-component" ] ] ]);